<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>phpDocumentor » \Survey</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner"><div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">phpDocumentor</a><div class="nav-collapse"><ul class="nav">
<li class="dropdown">
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                    API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
<li><a>Packages</a></li>
<li><a href="../packages/Cake.html"><i class="icon-folder-open"></i> Cake</a></li>
<li><a href="../packages/Controller.html"><i class="icon-folder-open"></i> Controller</a></li>
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
<li><a href="../packages/Model.html"><i class="icon-folder-open"></i> Model</a></li>
<li><a href="../packages/View.html"><i class="icon-folder-open"></i> View</a></li>
<li><a href="../packages/app.html"><i class="icon-folder-open"></i> app</a></li>
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                    Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                    Reports <b class="caret"></b></a><ul class="dropdown-menu">
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
                <span class="label label-info">64</span></a></li>
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
                <ul><li>todo 
                <span class="label label-info">20</span>
</li></ul></a></li>
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
                <span class="label label-info">0</span></a></li>
</ul>
</li>
</ul></div>
</div></div>
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
</div>
<div id="___" class="container">
<noscript><div class="alert alert-warning">
                            Javascript is disabled; several features are only available
                            if Javascript is enabled.
                        </div></noscript>
<div class="row">
<div class="span4">
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
</div>
<ul class="side-nav nav nav-list">
<li class="nav-header">
<i class="icon-custom icon-method"></i> Methods
                    <ul><li class="method public inherited"><a href="#method__findCount" title="_findCount :: Function to make paginate work properly for custom-defined finds."><span class="description">Function to make paginate work properly for custom-defined finds.</span><pre>_findCount()</pre></a></li></ul>
</li>
<li class="nav-header protected">» Protected
                    <ul><li class="method protected "><a href="#method__findAccessible" title="_findAccessible :: Finds surveys accessible to the given user."><span class="description">Finds surveys accessible to the given user.</span><pre>_findAccessible()</pre></a></li></ul>
</li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties
                    <ul>
<li class="property public "><a href="#property_Branding" title="$Branding :: "><span class="description"></span><pre>$Branding</pre></a></li>
<li class="property public "><a href="#property_Group" title="$Group :: "><span class="description"></span><pre>$Group</pre></a></li>
<li class="property public "><a href="#property_Participant" title="$Participant :: "><span class="description"></span><pre>$Participant</pre></a></li>
<li class="property public "><a href="#property_SurveyInstance" title="$SurveyInstance :: "><span class="description"></span><pre>$SurveyInstance</pre></a></li>
<li class="property public "><a href="#property_SurveyObject" title="$SurveyObject :: "><span class="description"></span><pre>$SurveyObject</pre></a></li>
<li class="property public "><a href="#property_User" title="$User :: "><span class="description"></span><pre>$User</pre></a></li>
<li class="property public "><a href="#property_belongsTo" title="$belongsTo :: belongsTo associations"><span class="description"></span><pre>$belongsTo</pre></a></li>
<li class="property public "><a href="#property_displayField" title="$displayField :: Display field"><span class="description"></span><pre>$displayField</pre></a></li>
<li class="property public "><a href="#property_findMethods" title="$findMethods :: Survey is accessible."><span class="description"></span><pre>$findMethods</pre></a></li>
<li class="property public "><a href="#property_hasMany" title="$hasMany :: hasMany associations"><span class="description"></span><pre>$hasMany</pre></a></li>
</ul>
</li>
<li class="nav-header">
<i class="icon-custom icon-constant"></i> Constants
                    <ul>
<li class="constant  "><a href="#constant_type_anonymous" title="type_anonymous :: "><span class="description">type_anonymous</span><pre>type_anonymous</pre></a></li>
<li class="constant  "><a href="#constant_type_authenticated" title="type_authenticated :: "><span class="description">type_authenticated</span><pre>type_authenticated</pre></a></li>
<li class="constant  "><a href="#constant_type_autoidentified" title="type_autoidentified :: "><span class="description">type_autoidentified</span><pre>type_autoidentified</pre></a></li>
<li class="constant  "><a href="#constant_type_identified" title="type_identified :: "><span class="description">type_identified</span><pre>type_identified</pre></a></li>
</ul>
</li>
</ul>
</div>
<div class="span8">
<a id="\Survey"></a><ul class="breadcrumb">
<li>
<a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
</li>
<li><a href="../namespaces/global.html">global</a></li>
<li class="active">
<span class="divider">\</span><a href="../classes/Survey.html">Survey</a>
</li>
</ul>
<div class="element class">
<p class="short_description">Survey Model</p>
<div class="details">
<div class="long_description"><p>A set of questions that a participant can answer</p></div>
<table class="table table-bordered"><tr>
<th>package</th>
<td><a href="../packages/Model.html">Model</a></td>
</tr></table>
<h3>
<i class="icon-custom icon-method"></i> Methods</h3>
<a id="method__findCount"></a><div class="element clickable method public method__findCount" data-toggle="collapse" data-target=".method__findCount .collapse">
<h2>Function to make paginate work properly for custom-defined finds.</h2>
<pre>_findCount($state, $query, $results) </pre>
<div class="labels"><span class="label">Inherited</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>see</th>
<td><a href="">\Model::_findCount()</a></td>
</tr>
<tr>
<th>inherited_from</th>
<td>\AppModel::_findCount()</td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument"><h4>$state</h4></div>
<div class="subelement argument"><h4>$query</h4></div>
<div class="subelement argument"><h4>$results</h4></div>
</div></div>
</div>
<a id="method__findAccessible"></a><div class="element clickable method protected method__findAccessible" data-toggle="collapse" data-target=".method__findAccessible .collapse">
<h2>Finds surveys accessible to the given user.</h2>
<pre>_findAccessible(\unknown_type $state, \unknown_type $query, \unknown_type $results) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$state</h4>
<code>\unknown_type</code><p>either 'before' or 'after'</p>
</div>
<div class="subelement argument">
<h4>$query</h4>
<code>\unknown_type</code><p>The query to perform 'before'</p>
</div>
<div class="subelement argument">
<h4>$results</h4>
<code>\unknown_type</code><p>The results to return 'after'</p>
</div>
</div></div>
</div>
<h3>
<i class="icon-custom icon-property"></i> Properties</h3>
<a id="property_Branding"> </a><div class="element clickable property public property_Branding" data-toggle="collapse" data-target=".property_Branding .collapse">
<h2></h2>
<pre>$Branding : \Branding</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>magic</th>
<td></td>
</tr>
<tr>
<th>property</th>
<td></td>
</tr>
</table>
</div></div>
</div>
<a id="property_Group"> </a><div class="element clickable property public property_Group" data-toggle="collapse" data-target=".property_Group .collapse">
<h2></h2>
<pre>$Group : <a href="../classes/Group.html">\Group</a></pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>magic</th>
<td></td>
</tr>
<tr>
<th>property</th>
<td></td>
</tr>
</table>
</div></div>
</div>
<a id="property_Participant"> </a><div class="element clickable property public property_Participant" data-toggle="collapse" data-target=".property_Participant .collapse">
<h2></h2>
<pre>$Participant : <a href="../classes/Participant.html">\Participant</a></pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>magic</th>
<td></td>
</tr>
<tr>
<th>property</th>
<td></td>
</tr>
</table>
</div></div>
</div>
<a id="property_SurveyInstance"> </a><div class="element clickable property public property_SurveyInstance" data-toggle="collapse" data-target=".property_SurveyInstance .collapse">
<h2></h2>
<pre>$SurveyInstance : <a href="../classes/SurveyInstance.html">\SurveyInstance</a></pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>magic</th>
<td></td>
</tr>
<tr>
<th>property</th>
<td></td>
</tr>
</table>
</div></div>
</div>
<a id="property_SurveyObject"> </a><div class="element clickable property public property_SurveyObject" data-toggle="collapse" data-target=".property_SurveyObject .collapse">
<h2></h2>
<pre>$SurveyObject : <a href="../classes/SurveyObject.html">\SurveyObject</a></pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>magic</th>
<td></td>
</tr>
<tr>
<th>property</th>
<td></td>
</tr>
</table>
</div></div>
</div>
<a id="property_User"> </a><div class="element clickable property public property_User" data-toggle="collapse" data-target=".property_User .collapse">
<h2></h2>
<pre>$User : <a href="../classes/User.html">\User</a></pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>magic</th>
<td></td>
</tr>
<tr>
<th>property</th>
<td></td>
</tr>
</table>
</div></div>
</div>
<a id="property_belongsTo"> </a><div class="element clickable property public property_belongsTo" data-toggle="collapse" data-target=".property_belongsTo .collapse">
<h2></h2>
<pre>$belongsTo : array</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="property_displayField"> </a><div class="element clickable property public property_displayField" data-toggle="collapse" data-target=".property_displayField .collapse">
<h2></h2>
<pre>$displayField : string</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="property_findMethods"> </a><div class="element clickable property public property_findMethods" data-toggle="collapse" data-target=".property_findMethods .collapse">
<h2></h2>
<pre>$findMethods </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="property_hasMany"> </a><div class="element clickable property public property_hasMany" data-toggle="collapse" data-target=".property_hasMany .collapse">
<h2></h2>
<pre>$hasMany : array</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<h3>
<i class="icon-custom icon-constant"></i> Constants</h3>
<a id="constant_type_anonymous"> </a><div class="element clickable constant  constant_type_anonymous" data-toggle="collapse" data-target=".constant_type_anonymous .collapse">
<h2>type_anonymous</h2>
<pre>type_anonymous </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_type_authenticated"> </a><div class="element clickable constant  constant_type_authenticated" data-toggle="collapse" data-target=".constant_type_authenticated .collapse">
<h2>type_authenticated</h2>
<pre>type_authenticated </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_type_autoidentified"> </a><div class="element clickable constant  constant_type_autoidentified" data-toggle="collapse" data-target=".constant_type_autoidentified .collapse">
<h2>type_autoidentified</h2>
<pre>type_autoidentified </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_type_identified"> </a><div class="element clickable constant  constant_type_identified" data-toggle="collapse" data-target=".constant_type_identified .collapse">
<h2>type_identified</h2>
<pre>type_identified </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
</div>
</div>
</div>
</div>
<div class="row"><footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a12</a> and<br>
            generated on 2012-12-14T12:15:29+11:00.<br></footer></div>
</div>
</body>
</html>
